package bank.server.sockets.bank;

import java.util.Set;


public class GetAccountNumbersResponse implements BankResponse  {

	private String[] numbers;

	public GetAccountNumbersResponse(Set<String> numbers) {
		if (numbers != null) {
			Object[] nrs = numbers.toArray();
			this.numbers = new String[nrs.length];
			for (int i = 0; i < nrs.length; i++) {
				this.numbers[i] = (String) nrs[i];
			}
		}
	}
	
	public String[] getNumbers(){
		return this.numbers;
	}
	
}
